package cn.lxb.web.starter.template.autoconfigure.converter;

import cn.lxb.web.starter.template.helper.TimeHelper;
import org.springframework.core.convert.converter.Converter;

import java.time.LocalDateTime;


/**
 * 转换器  LocalDateTime
 *
 * @author 54lxb
 * @since 2019-11-20
 */
public class LocalDateTimeConverter implements Converter<String, LocalDateTime> {

    @Override
    public LocalDateTime convert(String source) {
        return TimeHelper.parseLocalDateTime(source);
    }

}
